home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
SaveBufferAs_ILBM.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
867b
|
42 lines
/*
* SaveBufferAs.ifx.pre
* Written by Thomas Krehbiel
*
* Save main buffer.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_SaveBufferAsILBM_'
lastpath = GETCLIP(base||'Path')
lastext = GETCLIP(base||'Ext')
IF lastpath = "" THEN DO
GetPrefs SavePath
lastpath = result
END
IF lastext = "" THEN lastext = ".24"
Gadget.1 = 'STRING 120 5 200 14 "Output Path:" "'lastpath'"'
Gadget.2 = 'FILEREQ 321 5 20 14 "Output Path:" "'lastpath'" AT=1 DIRONLY'
Gadget.3 = 'STRING 120 20 200 14 "New Extension:" "'lastext'"'
Gadget.4 = 'END'
NewComplexRequest '"Save Buffer As ILBM"' Gadget 360 42
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Path', result.1)
CALL SETCLIP(base||'Ext', result.3)
EXIT